﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="XemGioHang.ascx.cs" Inherits="GioHang" %>
<asp:GridView ID="GridView" runat="server" AutoGenerateColumns="False" 
    Height="228px" Width="648px">
    <Columns>
        <asp:BoundField DataField="MaSach" HeaderText="Mã Sách" >
            <ControlStyle ForeColor="#00CCFF" />
            <HeaderStyle BackColor="White" BorderColor="#00CCFF" BorderStyle="Dashed" 
                Font-Bold="True" Font-Size="Small" ForeColor="#00CCFF" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
            <ItemStyle BackColor="#FCF8FD" BorderColor="#00CCFF" BorderStyle="Dotted" 
                Font-Size="Small" ForeColor="#00CCFF" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="TenSach" HeaderText="Tên sách" >
            <ControlStyle ForeColor="#00CCFF" />
            <HeaderStyle BackColor="White" BorderColor="#00CCFF" BorderStyle="Dashed" 
                Font-Bold="True" Font-Size="Small" ForeColor="#00CCFF" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
            <ItemStyle BackColor="#FCF8FD" BorderColor="#00CCFF" BorderStyle="Dotted" 
                Font-Size="Small" ForeColor="#00CCFF" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="Gia" HeaderText="Giá" >
            <ControlStyle ForeColor="#00CCFF" />
            <HeaderStyle BackColor="White" BorderColor="#00CCFF" BorderStyle="Dashed" 
                Font-Bold="True" Font-Size="Small" ForeColor="#00CCFF" />
            <ItemStyle BackColor="#FCF8FD" BorderColor="#00CCFF" BorderStyle="Dotted" 
                Font-Size="Small" ForeColor="#00CCFF" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:TemplateField HeaderText="Số lượng">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SoLuong") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Font-Size="Small" ForeColor="#00CCFF" 
                    Text='<%# Eval("SoLuong") %>'></asp:Label>
                &nbsp;
                <asp:LinkButton ID="btnUpDate" runat="server" 
                    CommandArgument='<%# Bind("MaSach") %>' Font-Bold="True" Font-Size="Small" 
                    ForeColor="#00CCFF" onclick="btnUpDate_Click">Thêm</asp:LinkButton>
            </ItemTemplate>
            <ControlStyle ForeColor="#00CCFF" />
            <HeaderStyle BackColor="White" BorderColor="#00CCFF" BorderStyle="Dashed" 
                Font-Bold="True" Font-Size="Small" ForeColor="#00CCFF" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
            <ItemStyle BackColor="#FCF8FD" BorderColor="#00CCFF" BorderStyle="Dotted" 
                Font-Size="Small" ForeColor="#00CCFF" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <ItemTemplate>
                <asp:LinkButton ID="btnXoa" runat="server" CausesValidation="False" 
                    CommandArgument='<%# Eval("MaSach") %>' CommandName="Xoa" Font-Bold="True" 
                    Font-Size="Small" ForeColor="#00CCFF" onclick="btnXoa_Click" Text="Xóa"></asp:LinkButton>
            </ItemTemplate>
            <HeaderStyle BorderStyle="Dashed" ForeColor="#00CCFF" BorderColor="#00CCFF" />
            <ItemStyle BackColor="#FCF8FD" BorderColor="#00CCFF" BorderStyle="Dotted" 
                Font-Size="Small" ForeColor="#00CCFF" HorizontalAlign="Center" 
                VerticalAlign="Middle" />
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<p align="center" 
    
    style="width: 428px; font-family: Arial, Helvetica, sans-serif; font-size: large; color: #00CCFF; font-weight: bold;">
    Tổng tiền:
    <asp:Label ID="Label2" runat="server" oninit="Label2_Load" Text="Label" 
        Font-Bold="True" Font-Size="Large" ForeColor="#00CCFF"></asp:Label>
</p>
<p align="center" 
    style="width: 428px; font-family: Arial, Helvetica, sans-serif; font-size: large; color: #0099FF; font-weight: bold; height: 33px;">
    <asp:Button ID="btnThanhToan" runat="server" Font-Bold="True" 
        Font-Size="Large" ForeColor="#00CCFF" onclick="btnThanhToan_Click" 
        Text="Thanh toán" />
</p>

